    <%@page import="java.util.Hashtable"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Enumeration" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ page import="projects.interactionObjects" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<jsp:useBean id="getClients" class="projects.interactionObjects"></jsp:useBean>
<jsp:setProperty property="*" name="getClients"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
	interactionObjects searchClients = new interactionObjects();
	Hashtable<Integer, String> returnedClients = new Hashtable<Integer, String>();
	returnedClients = searchClients.queryClients(Integer.parseInt(request.getParameter("clientType")));
	Enumeration<Integer> keysEnum = returnedClients.keys();

	ArrayList<Integer> keys = new ArrayList<Integer>();
	while(keysEnum.hasMoreElements()){
		keys.add(keysEnum.nextElement());
	}
	
	for(Integer key : keys){
		out.println("<option value='" + key + "'>" + returnedClients.get(key) + "</option>");
	}
	
	
%>
</body>
</html>